Cortex > Metrics
Administration
Cortex > System Health
Cortex > Session Management
Cortex > Index Management
Cortex > Document Operations
Cortex > Search Operations
Cortex > A/B Testing
Cortex > Analytics
Cortex > Feedback
Nous > Health
Nous > A/B Testing
Nous > Adaptation
Nous > Learning > Models
Nous > Learning > Search Patterns
Nous > Learning > Feedback
Nous > Learning > Metrics and Events
Nous > Signals
Cortex > Document Operations
Create Document
POST
/
cortex
/
documents
Copy
curl --request POST \
--url https://api.sophra.org/api/cortex/documents \
--header 'Content-Type: application/json' \
--data '{
"index": "research-papers",
"document": {
"title": "Example Research Paper",
"content": "This is the main content of the research paper...",
"abstract": "A brief summary of the research paper...",
"authors": [
"John Doe",
"Jane Smith"
],
"tags": [
"AI",
"Machine Learning"
],
"source": "arXiv"
}
}'
Copy
{
"success": true,
"data": {
"id": "<string>",
"index": "<string>",
"vectorized": true
}
}
Body
application/json
Response
201 - application/json
Document created successfully
The response is of type object
.
Copy
curl --request POST \
--url https://api.sophra.org/api/cortex/documents \
--header 'Content-Type: application/json' \
--data '{
"index": "research-papers",
"document": {
"title": "Example Research Paper",
"content": "This is the main content of the research paper...",
"abstract": "A brief summary of the research paper...",
"authors": [
"John Doe",
"Jane Smith"
],
"tags": [
"AI",
"Machine Learning"
],
"source": "arXiv"
}
}'
Copy
{
"success": true,
"data": {
"id": "<string>",
"index": "<string>",
"vectorized": true
}
}
Assistant
Responses are generated using AI and may contain mistakes.